package com.shopx.auth.service;

import com.shopx.auth.bean.SysUserRole;
import com.shopx.auth.model.SysUserRoleModel;
import com.shopx.base.exception.ShopxException;
import com.shopx.cmm.DTO.PageDTO;

/**
 * @author lituo
 * @className: ISysUserRoleService
 * @description: 用户角色
 * @date 2021/12/5 10:42 AM
 */
public interface ISysUserRoleService {

  /**
   * 新增记录
   *
   * @param sysUserRole
   * @return int
   * @author lituo
   * @date 3:23 PM 2021/12/5
   */
  int insertSelective(SysUserRole sysUserRole) throws ShopxException;

  /**
   * 删除记录
   *
   * @param sysUserRole
   * @return int
   * @author lituo
   * @date 3:23 PM 2021/12/5
   */
  int deleteByPrimaryKey(SysUserRole sysUserRole) throws ShopxException;

  /**
   * 查询明细记录
   *
   * @param sysUserRole
   * @return com.shopx.auth.model.SysUserRoleModel
   * @author lituo
   * @date 3:23 PM 2021/12/5
   */
  SysUserRoleModel selectByPrimaryKey(SysUserRole sysUserRole) throws ShopxException;

  /**
   * 修改记录
   *
   * @param sysUserRole
   * @return int
   * @author lituo
   * @date 3:23 PM 2021/12/5
   */
  int updateByPrimaryKeySelective(SysUserRole sysUserRole) throws ShopxException;

  /**
   * 分页查询
   *
   * @param sysUserRoleModel
   * @return com.shopx.cmm.dto.PageDTO<com.shopx.auth.model.SysUserRoleModel>
   * @author lituo
   * @date 3:23 PM 2021/12/5
   */
  PageDTO<SysUserRoleModel> getListPage(SysUserRoleModel sysUserRoleModel) throws ShopxException;


  /**
   * 根据用户编号查询角色信息
   *
   * @return java.lang.String
   * @author lituo
   * @date 9:33 PM 2022/3/16
   * @param  sysUserRole
   */
  String selectRoleByUserId(SysUserRoleModel sysUserRole);

}

